<div id="app">
    <router-view></router-view>
</div>
<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script src="/js/lib.js"></script>
<script src="/js/bundle.js?t=1487855193340"></script>
<script>
    wx.config({
        debug: false,
        appId: 'wx8bbcc4d675dd42dd',
        timestamp: '{{timestamp}}',
        nonceStr: '{{nonceStr}}',
        signature: '{{signature}}',
        jsApiList: ['getLocation']
    });

    wx.ready(() => {
        wx.getLocation({
            type: 'wgs84', // 默认为wgs84的gps坐标，如果要返回直接给openLocation用的火星坐标，可传入'gcj02'
            success: (res) => {
                window.latitude  = res.latitude; // 纬度，浮点数，范围为90 ~ -90
                window.longitude = res.longitude; // 经度，浮点数，范围为180 ~ -180。
            }
        });
    });
</script>